toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final extendedKeyUsage = this.extendedKeyUsage;
  final keyTypes = this.keyTypes;
  final keyUsage = this.keyUsage;
  return {
    if (extendedKeyUsage != null)
      'extendedKeyUsage': extendedKeyUsage.map((e) => e.toValue()).toList(),
    if (keyTypes != null)
      'keyTypes': keyTypes.map((e) => e.toValue()).toList(),
    if (keyUsage != null)
      'keyUsage': keyUsage.map((e) => e.toValue()).toList(),
  };
}