fromValidated static method

ZapError fromValidated(
  1. Map<String, Object?> json
)

Implementation

static ZapError fromValidated(Map<String, Object?> json) => ZapError(
  id: json['id'] as String,
  ts: json['ts'] as String,
  code: json['code'] as String,
  message: json['message'] as String,
  inReplyTo: json['inReplyTo'] as String?,
  details: [for (final d in (json['details'] as List?) ?? []) d as String],
);