ReachabilityDetails.fromJson constructor

ReachabilityDetails.fromJson(
  1. Map json_
)

Implementation

ReachabilityDetails.fromJson(core.Map json_)
    : this(
        error: json_.containsKey('error')
            ? Status.fromJson(
                json_['error'] as core.Map<core.String, core.dynamic>)
            : null,
        result: json_.containsKey('result')
            ? json_['result'] as core.String
            : null,
        traces: json_.containsKey('traces')
            ? (json_['traces'] as core.List)
                .map((value) => Trace.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        verifyTime: json_.containsKey('verifyTime')
            ? json_['verifyTime'] as core.String
            : null,
      );