GroupLabel.fromJson constructor

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

Implementation

factory GroupLabel.fromJson(Map<String, Object?> json) {
  return GroupLabel(
    text: json[r'text'] as String?,
    title: json[r'title'] as String?,
    type: json[r'type'] != null
        ? GroupLabelType.fromValue(json[r'type']! as String)
        : null,
  );
}