AppleName.fromJson constructor

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

Creates an AppleName from a JSON map.

Implementation

factory AppleName.fromJson(Map<String, dynamic> json) {
  return AppleName(
    firstName: json['firstName']?.toString(),
    lastName: json['lastName']?.toString(),
  );
}