ListResponse.fromJson constructor Null safety

ListResponse.fromJson(
  1. Map _json
)

Implementation

ListResponse.fromJson(core.Map _json)
    : this(
        debugString: _json.containsKey('debugString')
            ? _json['debugString'] as core.String
            : null,
        errorCode: _json.containsKey('errorCode')
            ? (_json['errorCode'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        maxAge: _json.containsKey('maxAge')
            ? _json['maxAge'] as core.String
            : null,
        statements: _json.containsKey('statements')
            ? (_json['statements'] as core.List)
                .map((value) => Statement.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );