Resource.fromJson constructor
Implementation
factory Resource.fromJson(Map<String, dynamic> json) {
return Resource(
doubleValue: json['doubleValue'] as double?,
integerValue: json['integerValue'] as int?,
longValue: json['longValue'] as int?,
name: json['name'] as String?,
stringSetValue: (json['stringSetValue'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
type: json['type'] as String?,
);
}