NamedRange.fromJson constructor

NamedRange.fromJson(
  1. Map json_
)

Implementation

NamedRange.fromJson(core.Map json_)
    : this(
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        namedRangeId: json_.containsKey('namedRangeId')
            ? json_['namedRangeId'] as core.String
            : null,
        ranges: json_.containsKey('ranges')
            ? (json_['ranges'] as core.List)
                .map((value) => Range.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );