AddonIssue.fromJson constructor

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

Implementation

factory AddonIssue.fromJson(Map<String, dynamic> json) {
  return AddonIssue(
    code: (json['code'] as String?)?.toAddonIssueCode(),
    message: json['message'] as String?,
    resourceIds: (json['resourceIds'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}