fromJson static method

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

Implementation

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

  return CommunityId(
    id: (json['id'] as int?) ?? 0,
  );
}