AuthKey.fromJson constructor
Implementation
factory AuthKey.fromJson(Map<String, dynamic> jsonSerialization) {
return AuthKey(
id: jsonSerialization['id'] as int?,
userId: jsonSerialization['userId'] as int,
hash: jsonSerialization['hash'] as String,
key: jsonSerialization['key'] as String?,
scopeNames: (jsonSerialization['scopeNames'] as List)
.map((e) => e as String)
.toList(),
method: jsonSerialization['method'] as String,
);
}