Status.fromJson constructor

Status.fromJson(
  1. Map json_
)

Implementation

Status.fromJson(core.Map json_)
    : this(
        code: json_.containsKey('code') ? json_['code'] as core.int : null,
        details: json_.containsKey('details')
            ? StatusDetails.fromJson(
                json_['details'] as core.Map<core.String, core.dynamic>)
            : null,
        message: json_.containsKey('message')
            ? json_['message'] as core.String
            : null,
        metadata: json_.containsKey('metadata')
            ? ListMeta.fromJson(
                json_['metadata'] as core.Map<core.String, core.dynamic>)
            : null,
        reason: json_.containsKey('reason')
            ? json_['reason'] as core.String
            : null,
        status: json_.containsKey('status')
            ? json_['status'] as core.String
            : null,
      );