Hold.fromJson constructor

Hold.fromJson(
  1. Map json_
)

Implementation

Hold.fromJson(core.Map json_)
    : this(
        accounts: json_.containsKey('accounts')
            ? (json_['accounts'] as core.List)
                .map((value) => HeldAccount.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        corpus: json_.containsKey('corpus')
            ? json_['corpus'] as core.String
            : null,
        holdId: json_.containsKey('holdId')
            ? json_['holdId'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        orgUnit: json_.containsKey('orgUnit')
            ? HeldOrgUnit.fromJson(
                json_['orgUnit'] as core.Map<core.String, core.dynamic>)
            : null,
        query: json_.containsKey('query')
            ? CorpusQuery.fromJson(
                json_['query'] as core.Map<core.String, core.dynamic>)
            : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );