UserInfo.fromJson constructor
UserInfo.fromJson(
- Map<String, dynamic> jsonSerialization
)
Implementation
factory UserInfo.fromJson(Map<String, dynamic> jsonSerialization) {
return UserInfo(
id: jsonSerialization['id'] as int?,
userIdentifier: jsonSerialization['userIdentifier'] as String,
userName: jsonSerialization['userName'] as String?,
fullName: jsonSerialization['fullName'] as String?,
email: jsonSerialization['email'] as String?,
created: _i1.DateTimeJsonExtension.fromJson(jsonSerialization['created']),
imageUrl: jsonSerialization['imageUrl'] as String?,
scopeNames: (jsonSerialization['scopeNames'] as List)
.map((e) => e as String)
.toList(),
blocked: jsonSerialization['blocked'] as bool,
);
}