toJson method

  1. @override
Map<String, dynamic> toJson()
override

Implementation

@override
Map<String, dynamic> toJson() {
  var tmp = super.toJson();
  if (tmp.containsKey('statusListCredential')) {
    return tmp;
  } else {
    tmp['statusListIndex'] = statusListIndex;
    tmp['statusListCredential'] = statusListCredential;
    tmp['statusPurpose'] = statusPurpose.value;
    return tmp;
  }
}