AddContentRestrictionRestrictionsUserItem.fromJson constructor

AddContentRestrictionRestrictionsUserItem.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory AddContentRestrictionRestrictionsUserItem.fromJson(
    Map<String, Object?> json) {
  return AddContentRestrictionRestrictionsUserItem(
    type: AddContentRestrictionRestrictionsUserItemType.fromValue(
        json[r'type'] as String? ?? ''),
    username: json[r'username'] as String?,
    userKey: json[r'userKey'] as String?,
    accountId: json[r'accountId'] as String? ?? '',
  );
}