GroupCreate.fromJson constructor

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

Implementation

factory GroupCreate.fromJson(Map<String, Object?> json) {
  return GroupCreate(
    type: GroupCreateType.fromValue(json[r'type'] as String? ?? ''),
    name: json[r'name'] as String?,
    id: json[r'id'] as String?,
  );
}