AuthKey.fromJson constructor

AuthKey.fromJson(
  1. Map<String, dynamic> jsonSerialization
)

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: _i2.Protocol().deserialize<List<String>>(
      jsonSerialization['scopeNames'],
    ),
    method: jsonSerialization['method'] as String,
  );
}