Warnings.fromJson constructor

Warnings.fromJson(
  1. Map json_
)

Implementation

Warnings.fromJson(core.Map json_)
    : this(
        code: json_.containsKey('code') ? json_['code'] as core.String : null,
        data: json_.containsKey('data')
            ? (json_['data'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        warningMessage: json_.containsKey('warningMessage')
            ? json_['warningMessage'] as core.String
            : null,
      );