Skip to content
This repository was archived by the owner on Feb 21, 2019. It is now read-only.
This repository was archived by the owner on Feb 21, 2019. It is now read-only.

Problem while parsing Generic objects #1

@chanchalchauhan

Description

@chanchalchauhan

When I tried to parse a generic object, my application got crashed and this problem has occurred while parsing an array.
Here is my model class for Generic type:

class MyModel<T>: ParsableModel {
        var responseStatus: StatusCode?
	var responseData: T?
	
	override func setValue(_ value: Any?, forUndefinedKey key: String) {
		if key == "responseData" {
			responseData = value as? T
		}
	}
}

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions