Group.fromJson(Map<String, Object?> json) : key = ((v) => v != null ? GroupKey.values.fromString(v as String)! : null)(json['key']);