Option.fromJson constructor

Option.fromJson(
  1. Map json_
)

Implementation

Option.fromJson(core.Map json_)
    : this(
        goToAction: json_.containsKey('goToAction')
            ? json_['goToAction'] as core.String
            : null,
        goToSectionId: json_.containsKey('goToSectionId')
            ? json_['goToSectionId'] as core.String
            : null,
        image: json_.containsKey('image')
            ? Image.fromJson(
                json_['image'] as core.Map<core.String, core.dynamic>)
            : null,
        isOther: json_.containsKey('isOther')
            ? json_['isOther'] as core.bool
            : null,
        value:
            json_.containsKey('value') ? json_['value'] as core.String : null,
      );