toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'message': message,
    if (signatureIndex != null) 'signatureIndex': signatureIndex,
    if (errorField != null) 'errorField': errorField!.toJson(),
  };
}