Permission.fromJson constructor

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

Implementation

factory Permission.fromJson(Map<String, dynamic> json) {
  return Permission(
    actions: (json['Actions'] as List?)
        ?.whereNotNull()
        .map((e) => (e as String).toActionType())
        .toList(),
    certificateAuthorityArn: json['CertificateAuthorityArn'] as String?,
    createdAt: timeStampFromJson(json['CreatedAt']),
    policy: json['Policy'] as String?,
    principal: json['Principal'] as String?,
    sourceAccount: json['SourceAccount'] as String?,
  );
}