ErrorMsg.fromJson constructor

ErrorMsg.fromJson(
  1. Map<String, dynamic> json
)

Implementation

ErrorMsg.fromJson(Map<String, dynamic> json)
    : cause = enumFromString(IdcheckioErrorCause.values, json['cause']) ?? IdcheckioErrorCause.INTERNAL_ERROR,
      details = json['details'],
      message = json['message'],
      subCause = enumFromString(IdcheckioSubCause.values, json['subCause']);