Option.fromJson constructor

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

Implementation

factory Option.fromJson(final Map<String, dynamic> json) => Option(
      type: json["type"] as String?,
      text: json["text"] as String?,
    );