LabelElement.fromJson constructor

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

Implementation

factory LabelElement.fromJson(Map<String, dynamic> json) {
  return LabelElement(
    type: json['type'],
    scope: json['scope'],
    elements: json['elements'] != null
        ? (json['elements'] as List)
            .map((e) => UISchemaElement.fromJson(e))
            .toList()
        : null,
    label: json['label'],
    text: json['text'],
    options: json['options'],
  );
}