SourceAndDestination.fromJson constructor

SourceAndDestination.fromJson(
  1. Map json_
)

Implementation

SourceAndDestination.fromJson(core.Map json_)
    : this(
        dimension: json_.containsKey('dimension')
            ? json_['dimension'] as core.String
            : null,
        fillLength: json_.containsKey('fillLength')
            ? json_['fillLength'] as core.int
            : null,
        source: json_.containsKey('source')
            ? GridRange.fromJson(
                json_['source'] as core.Map<core.String, core.dynamic>)
            : null,
      );