SecretKeySelector.fromJson constructor

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

Creates a SecretKeySelector from JSON data.

Implementation

factory SecretKeySelector.fromJson(Map<String, dynamic> json) {
  final tempKeyJson = json['key'];
  final tempNameJson = json['name'];
  final tempOptionalJson = json['optional'];

  final String tempKey = tempKeyJson;
  final String? tempName = tempNameJson;
  final bool? tempOptional = tempOptionalJson;

  return SecretKeySelector(
    key: tempKey,
    name: tempName,
    optional: tempOptional,
  );
}