Move.fromJson constructor

Move.fromJson(
  1. Map json_
)

Implementation

Move.fromJson(core.Map json_)
    : this(
        addedParents: json_.containsKey('addedParents')
            ? (json_['addedParents'] as core.List)
                .map((value) => TargetReference.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        removedParents: json_.containsKey('removedParents')
            ? (json_['removedParents'] as core.List)
                .map((value) => TargetReference.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );