toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (details != null) 'details': details!,
if (domain != null) 'domain': domain!,
if (failureReason != null) 'failureReason': failureReason!,
if (state != null) 'state': state!,
};