DeliveryError.fromJson constructor

DeliveryError.fromJson(
  1. Map json_
)

Implementation

DeliveryError.fromJson(core.Map json_)
    : this(
        errorClass: json_.containsKey('errorClass')
            ? json_['errorClass'] as core.String
            : null,
        errorRatio: json_.containsKey('errorRatio')
            ? (json_['errorRatio'] as core.num).toDouble()
            : null,
        errorType: json_.containsKey('errorType')
            ? json_['errorType'] as core.String
            : null,
      );