MigrationWarning.fromJson constructor

MigrationWarning.fromJson(
  1. Map json_
)

Implementation

MigrationWarning.fromJson(core.Map json_)
    : this(
        actionItem: json_.containsKey('actionItem')
            ? LocalizedMessage.fromJson(
                json_['actionItem'] as core.Map<core.String, core.dynamic>)
            : null,
        code: json_.containsKey('code') ? json_['code'] as core.String : null,
        helpLinks: json_.containsKey('helpLinks')
            ? (json_['helpLinks'] as core.List)
                .map((value) => Link.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        warningMessage: json_.containsKey('warningMessage')
            ? LocalizedMessage.fromJson(json_['warningMessage']
                as core.Map<core.String, core.dynamic>)
            : null,
        warningTime: json_.containsKey('warningTime')
            ? json_['warningTime'] as core.String
            : null,
      );