fromJson static method

CollectibleItemTypeUsername? fromJson(
  1. Map<String, dynamic>? json
)
override

Implementation

static CollectibleItemTypeUsername? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return CollectibleItemTypeUsername(
    username: (json['username'] as String?) ?? '',
  );
}