ShareRule.fromJson constructor
Implementation
factory ShareRule.fromJson(Map<String, dynamic> json) {
return ShareRule(
targetAccounts: (json['TargetAccounts'] as List)
.whereNotNull()
.map((e) => e as String)
.toList(),
unshareInterval: json['UnshareInterval'] as int?,
unshareIntervalUnit: (json['UnshareIntervalUnit'] as String?)
?.toRetentionIntervalUnitValues(),
);
}