factory ClientId.fromJson(Map<String, dynamic> json) => ClientId( json['identifier'] as String, json['secret'] as String?, );