GetPropertiesResult.fromJson constructor
GetPropertiesResult.fromJson(
- Map<String, dynamic> json
)
Implementation
factory GetPropertiesResult.fromJson(Map<String, dynamic> json) {
return GetPropertiesResult(
result: (json['result'] as List)
.map((e) => PropertyDescriptor.fromJson(e as Map<String, dynamic>))
.toList(),
internalProperties: json.containsKey('internalProperties')
? (json['internalProperties'] as List)
.map((e) => InternalPropertyDescriptor.fromJson(
e as Map<String, dynamic>))
.toList()
: null,
privateProperties: json.containsKey('privateProperties')
? (json['privateProperties'] as List)
.map((e) =>
PrivatePropertyDescriptor.fromJson(e as Map<String, dynamic>))
.toList()
: null,
exceptionDetails: json.containsKey('exceptionDetails')
? ExceptionDetails.fromJson(
json['exceptionDetails'] as Map<String, dynamic>)
: null,
);
}