Release.fromJson constructor

Release.fromJson(
  1. Map json_
)

Implementation

Release.fromJson(core.Map json_)
    : this(
        fraction: json_.containsKey('fraction')
            ? (json_['fraction'] as core.num).toDouble()
            : null,
        fractionGroup: json_.containsKey('fractionGroup')
            ? json_['fractionGroup'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        serving: json_.containsKey('serving')
            ? Interval.fromJson(
                json_['serving'] as core.Map<core.String, core.dynamic>)
            : null,
        version: json_.containsKey('version')
            ? json_['version'] as core.String
            : null,
      );