toJson method

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

Implementation

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