fromJson static method

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

Returns a new RuleLinks instance and imports its values from json if it's non-null, null if json is null.

Implementation

static RuleLinks? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return RuleLinks(
    category: RuleLinksCategory.fromJson(json[r'category']),
    place: RuleLinksPlace.fromJson(json[r'place']),
    self: RuleLinksSelf.fromJson(json[r'self']),
    service: RuleLinksService.fromJson(json[r'service']),
  );
}