SpekeKeyProvider.fromJson constructor

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

Implementation

factory SpekeKeyProvider.fromJson(Map<String, dynamic> json) {
  return SpekeKeyProvider(
    certificateArn: json['certificateArn'] as String?,
    resourceId: json['resourceId'] as String?,
    systemIds: (json['systemIds'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    url: json['url'] as String?,
  );
}