Attributes.fromJson constructor Null safety

Attributes.fromJson(
  1. Map<String, dynamic> json
)

Implementation

Attributes.fromJson(Map<String, dynamic> json) {
  name = json['name'] ?? '';
  website = json['website'] ?? '';
  ircServer = json['ircServer'] ?? '';
  ircChannel = json['ircChannel'] ?? '';
  discord = json['discord'] ?? '';
  contactEmail = json['contactEmail'] ?? '';
  locked = json['locked'] ?? true;
  official = json['official'] ?? true;
  createdAt = json['createdAt'] ?? '';
  updatedAt = json['updatedAt'] ?? '';
  version = json['version'] ?? '';
}